package com.kk.dp.celue;

import java.util.Arrays;

/**
 * @Description:
 * @Author: kangkai
 * @Date: 2025/3/13 21:31
 */
public class Main {
    public static void main(String[] args) {
//        int[] a={9,2,3,5,7,1,4};
//        Sorter.sort(a);
//        System.out.println(Arrays.toString(a));
        Cat[] cats={new Cat(6,3),new Cat(4,7),new Cat(5,2)};
        Sorter sorter = new Sorter();
        sorter.sort(cats, new CatComparer());
//        sorter.sort(cats, new Cat1Comparer());
        System.out.println(Arrays.toString(cats));
    }
}
